.class public Lcom/waiqin365/lightapp/chexiao/CXKCActivity;
.super Lcom/waiqin365/lightapp/base/WqBaseActivity;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private a:Landroid/widget/ListView;

.field private b:Landroid/view/View;

.field private c:Landroid/view/View;

.field private d:Lcom/waiqin365/base/login/mainview/TitleBar;

.field private e:Lcom/waiqin365/lightapp/view/LabelView_vertical;

.field private f:Landroid/widget/TextView;

.field private g:Ljava/util/List;

.field private h:Lcom/waiqin365/lightapp/chexiao/a/v;

.field private i:Lcom/waiqin365/lightapp/chexiao/az;


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;-><init>()V

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->g:Ljava/util/List;

    return-void
.end method

.method private a()V
    .locals 1

    const v0, 0x7f0c0539

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ListView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->a:Landroid/widget/ListView;

    const v0, 0x7f0c0532

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->b:Landroid/view/View;

    const v0, 0x7f0c053a

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->c:Landroid/view/View;

    const v0, 0x7f0c0523

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/login/mainview/TitleBar;

    iput-object v0, p0, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->d:Lcom/waiqin365/base/login/mainview/TitleBar;

    const v0, 0x7f0c0537

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/view/LabelView_vertical;

    iput-object v0, p0, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->e:Lcom/waiqin365/lightapp/view/LabelView_vertical;

    const v0, 0x7f0c0538

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->f:Landroid/widget/TextView;

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/chexiao/CXKCActivity;)V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->d()V

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/chexiao/CXKCActivity;Ljava/lang/String;)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->a(Ljava/lang/String;)V

    return-void
.end method

.method private a(Ljava/lang/String;)V
    .locals 6

    const/4 v3, 0x1

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->g:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->e:Lcom/waiqin365/lightapp/view/LabelView_vertical;

    invoke-virtual {v0, p1}, Lcom/waiqin365/lightapp/view/LabelView_vertical;->setContent(Ljava/lang/String;)V

    new-instance v0, Lcom/waiqin365/lightapp/product/d/j;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/product/d/j;-><init>()V

    const-string/jumbo v1, "2147483647"

    iput-object v1, v0, Lcom/waiqin365/lightapp/product/d/j;->h:Ljava/lang/String;

    iput-boolean v3, v0, Lcom/waiqin365/lightapp/product/d/j;->l:Z

    iget-object v1, p0, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->mContext:Landroid/content/Context;

    invoke-static {v1}, Lcom/waiqin365/base/db/offlinedata/w;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/w;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/waiqin365/base/db/offlinedata/w;->b(Lcom/waiqin365/lightapp/product/d/j;)Ljava/util/List;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->g:Ljava/util/List;

    invoke-interface {v1, v0}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    iget-object v1, p0, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->f:Landroid/widget/TextView;

    const v2, 0x7f080628

    invoke-virtual {p0, v2}, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    new-array v3, v3, [Ljava/lang/Object;

    const/4 v4, 0x0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v5

    invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    aput-object v5, v3, v4

    invoke-static {v2, v3}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    invoke-static {v0}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v0

    const-string/jumbo v3, "#ff9008"

    invoke-static {v3}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v3

    invoke-static {v2, v0, v3}, Lcom/waiqin365/lightapp/dailyreport/util/a;->a(Ljava/lang/CharSequence;Ljava/lang/CharSequence;I)Landroid/text/SpannableStringBuilder;

    move-result-object v0

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->h:Lcom/waiqin365/lightapp/chexiao/a/v;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/chexiao/a/v;->notifyDataSetChanged()V

    return-void
.end method

.method static synthetic b(Lcom/waiqin365/lightapp/chexiao/CXKCActivity;)Landroid/view/View;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->b:Landroid/view/View;

    return-object v0
.end method

.method private b()V
    .locals 2

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->e:Lcom/waiqin365/lightapp/view/LabelView_vertical;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/LabelView_vertical;->setBottomLineStatus(Z)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->d:Lcom/waiqin365/base/login/mainview/TitleBar;

    iget-object v0, v0, Lcom/waiqin365/base/login/mainview/TitleBar;->i:Landroid/view/View;

    invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->d:Lcom/waiqin365/base/login/mainview/TitleBar;

    iget-object v0, v0, Lcom/waiqin365/base/login/mainview/TitleBar;->b:Landroid/widget/ImageButton;

    invoke-virtual {v0, p0}, Landroid/widget/ImageButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->d:Lcom/waiqin365/base/login/mainview/TitleBar;

    iget-object v0, v0, Lcom/waiqin365/base/login/mainview/TitleBar;->a:Landroid/widget/ImageButton;

    invoke-virtual {v0, p0}, Landroid/widget/ImageButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->d:Lcom/waiqin365/base/login/mainview/TitleBar;

    iget-object v0, v0, Lcom/waiqin365/base/login/mainview/TitleBar;->f:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method

.method static synthetic c(Lcom/waiqin365/lightapp/chexiao/CXKCActivity;)Landroid/view/View;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->c:Landroid/view/View;

    return-object v0
.end method

.method private c()V
    .locals 3

    const/16 v1, 0x8

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->b:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->c:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->e:Lcom/waiqin365/lightapp/view/LabelView_vertical;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const v2, 0x7f08006b

    invoke-virtual {p0, v2}, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, "    "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/LabelView_vertical;->setLabel(Ljava/lang/CharSequence;)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "title"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->d:Lcom/waiqin365/base/login/mainview/TitleBar;

    iget-object v0, v0, Lcom/waiqin365/base/login/mainview/TitleBar;->e:Landroid/widget/TextView;

    const v1, 0x7f08006e

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->d:Lcom/waiqin365/base/login/mainview/TitleBar;

    iget-object v0, v0, Lcom/waiqin365/base/login/mainview/TitleBar;->b:Landroid/widget/ImageButton;

    const v1, 0x7f020153

    invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->setBackgroundResource(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->d:Lcom/waiqin365/base/login/mainview/TitleBar;

    iget-object v0, v0, Lcom/waiqin365/base/login/mainview/TitleBar;->f:Landroid/widget/ImageView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    new-instance v0, Lcom/waiqin365/lightapp/chexiao/a/v;

    iget-object v1, p0, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->mContext:Landroid/content/Context;

    iget-object v2, p0, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->g:Ljava/util/List;

    invoke-direct {v0, v1, v2}, Lcom/waiqin365/lightapp/chexiao/a/v;-><init>(Landroid/content/Context;Ljava/util/List;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->h:Lcom/waiqin365/lightapp/chexiao/a/v;

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->a:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->h:Lcom/waiqin365/lightapp/chexiao/a/v;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    return-void

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->d:Lcom/waiqin365/base/login/mainview/TitleBar;

    iget-object v0, v0, Lcom/waiqin365/base/login/mainview/TitleBar;->e:Landroid/widget/TextView;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    const-string/jumbo v2, "title"

    invoke-virtual {v1, v2}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0
.end method

.method private d()V
    .locals 3

    const-string/jumbo v0, ""

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->showProgressDialog(Ljava/lang/String;)V

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->mContext:Landroid/content/Context;

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/login/mainview/a;->p(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    new-instance v1, Lcom/waiqin365/lightapp/chexiao/b/a/c;

    invoke-direct {v1, v0}, Lcom/waiqin365/lightapp/chexiao/b/a/c;-><init>(Ljava/lang/String;)V

    new-instance v0, Lcom/waiqin365/lightapp/chexiao/b/b;

    iget-object v2, p0, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->i:Lcom/waiqin365/lightapp/chexiao/az;

    invoke-direct {v0, v2, v1}, Lcom/waiqin365/lightapp/chexiao/b/b;-><init>(Landroid/os/Handler;Lcom/waiqin365/lightapp/chexiao/b/c;)V

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/chexiao/b/b;->start()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 2

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    :goto_0
    :pswitch_0
    return-void

    :pswitch_1
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->finish()V

    goto :goto_0

    :pswitch_2
    invoke-direct {p0}, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->d()V

    goto :goto_0

    :pswitch_3
    const v0, 0x7f08081e

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    const-string/jumbo v1, "http://mobile.waiqin365.com/p-guide-852.html"

    invoke-static {p0, v0, v1}, Lcom/waiqin365/base/login/fragment/a;->a(Landroid/app/Activity;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x7f0c008a
        :pswitch_1
        :pswitch_0
        :pswitch_3
        :pswitch_0
        :pswitch_2
        :pswitch_0
        :pswitch_2
    .end packed-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 4

    const/4 v3, 0x1

    const/4 v2, 0x0

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onCreate(Landroid/os/Bundle;)V

    const v0, 0x7f0300dc

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->setContentView(I)V

    new-instance v0, Lcom/waiqin365/lightapp/chexiao/az;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightapp/chexiao/az;-><init>(Lcom/waiqin365/lightapp/chexiao/CXKCActivity;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->i:Lcom/waiqin365/lightapp/chexiao/az;

    invoke-direct {p0}, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->a()V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->b()V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->c()V

    new-instance v0, Lcom/waiqin365/lightapp/product/d/j;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/product/d/j;-><init>()V

    iput-boolean v3, v0, Lcom/waiqin365/lightapp/product/d/j;->l:Z

    invoke-static {}, Lcom/waiqin365/lightapp/chexiao/d/a;->j()Z

    move-result v1

    if-nez v1, :cond_0

    iget-object v1, p0, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->mContext:Landroid/content/Context;

    invoke-static {v1}, Lcom/waiqin365/base/db/offlinedata/w;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/w;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/waiqin365/base/db/offlinedata/w;->a(Lcom/waiqin365/lightapp/product/d/j;)I

    move-result v0

    if-nez v0, :cond_1

    :cond_0
    new-instance v0, Lcom/waiqin365/lightapp/chexiao/ay;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightapp/chexiao/ay;-><init>(Lcom/waiqin365/lightapp/chexiao/CXKCActivity;)V

    invoke-static {p0, v2, v3, v0}, Lcom/waiqin365/lightapp/kehu/c/b;->a(Landroid/content/Context;ZZLcom/waiqin365/lightapp/kehu/c/l;)V

    :goto_0
    return-void

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->b:Landroid/view/View;

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    invoke-static {}, Lcom/waiqin365/lightapp/chexiao/d/a;->l()Lcom/waiqin365/lightapp/chexiao/c/s;

    move-result-object v0

    iget-object v0, v0, Lcom/waiqin365/lightapp/chexiao/c/s;->b:Ljava/lang/String;

    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/chexiao/CXKCActivity;->a(Ljava/lang/String;)V

    goto :goto_0
.end method
